package hh.util.bean.copy;

import hh.util.bean.ReflectFieldInfo;

/**
 * @author huanghuai
 * @date 2020/10/26
 */
public class FieldGetSetCopier extends GetSetCopier {

    private static final long serialVersionUID = -3441487741431485807L;

    @Override
    protected <Source, Dest> void doReflectFieldCopy(ReflectFieldInfo sourceFieldInfo, ReflectFieldInfo destFieldInfo, Source source, Dest destObj) throws Exception {
        destFieldInfo.write(destObj, sourceFieldInfo.read(source));
    }
}
